import request from '@/utils/request.js'

// 封装一个联想词汇搜索的接口
export const suggest = (params) => {
  return request({
    url: '/v1_0/suggestion',
    params
  })
}

// 封装一个搜索结果的接口
export const getSearch = (params) => {
  return request({
    url: '/v1_0/search',
    params
  })
}
